<?php
	session_start();
	var_dump($_SESSION);
	echo '<br/>';
	var_dump($_GET);
	if(!isset($_SESSION['uid'])){
		header('location:./reply.php?pid='.$_GET['pid'].'&tid='.$_GET['tid']);
		exit;
	}
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>兄弟连论坛-PHP技术交流</title>
	<link href="../public/home/css/qingkongsuoyougeshi.css" rel="stylesheet" type="text/css"/>
	<link href="../public/home/css/css1.css" rel="stylesheet" type="text/css" />
</head>	
<body>
	<div id="tou1">
		<div>
			<div>
				<div id="hang1">
					<a href="#">设为首页</a>
					<a href="#">收藏LAMP兄弟连</a>
					<a href="#">帮助</a>
					<a href="#">推广链接</a>
					<a href="#">社区应用</a>
					<a href="#">最新帖子</a>
					<a href="#">精华区</a>
					<a href="#">社区服务</a>
					<a href="#">会员列表</a>
					<a href="#">统计排行</a>
					<a href="#">搜索</a>
				</div>
			</div>	
		</div>
		<div>
			<div>
				<img src="../public/home/img/logo.png" />
				<?php
					if(!isset($_SESSION['uid'])){
				?>
				
				<form method="post" action="xo.php">
					<input type="text" name="usename" />
					<input type="password" name="passwd" />
					<input type="checkbox" name="zhaohui" />
						<span>记住密码</span>
					<a href="#">找回密码</a>
					<input type="submit" name="submit" value="登录"/>
					<input type="button" name="zhuce" value="注册" />
				</form>
				<?php
					}else{
					$auths = array('普通用户','管理员');
				?>
					<div id='php'>
							<div id='php1'>
								<div><p>会员名：<?php echo $_SESSION['userName']; ?> &nbsp;.</p></div>
								<div><p>[普通会员]</p></div>
								<div><p>[积分:50]</p></div>
							</div>
							<div id='php2'>
								<div><img src="../public/home/tmp_name/<?php echo $_SESSION['photo']; ?>" /></div>
							</div>
							<div id='php3'>
								<!--<a href=''>更改个人信息</a>
								<a href=''>更改头像</a>-->
							</div>
							<div id='php4'>
								<a href='./out.php'>退出</a>
							</div>
							<div style='clear:both'></div>
						</div>
				<?php
					}
				?>
				
				
				
			</div>
		</div>
		<div>
			<div>
				<a href="#">技术交流</a>
				<a href="#">兄弟连</a>
				<a href="#">连队趣事</a>
				<a href="#">议事厅</a>
			</div>
		</div>
	</div>
	<div id="tou2">
		<div id="kuang1">
			<div>
				<div id="zhongbu1">
						<img src="../public/home/img/home.gif.png" />
						<span>LAMP兄弟连 > PHP技术交流 > 回复帖子</span>
				</div>
				<div id="zhongbu2">
					<div id="fenlei"></div>
					<form method="post" action="xo.php">
						<input type="text" name="shurukuang" />
					</form>
				
					<!--<div id="jiaobenkuang">
						<span>LAMP118BBS专用...</span>
					</div>--><br/>
					<div id="fatieniu">
						<form method=post action="doHuifu.php">
　　　　　　     		<textarea name='content' style='resize:none;width:500px;height:300px;'></textarea><br/>
							<input type=submit value="确认发帖"/>
							<input type='hidden' name='id' value='<?php echo $_GET['id']; ?>' />
							<input type='hidden' name='tid' value='<?php echo $_GET['tid']; ?>' />
							<input type='hidden' name='pid' value='<?php echo $_GET['pid']; ?>' />
						</form>
					</div>
				</div>
				<div id="dibu">
					<div id="alianjie">
						<a href="#">联系我们</a>
						<span>|</sapn>
						<a href="#">无图版</a>
						<span>|</span>
						<a href="#">手机浏览</a>
						<span>|</span>
						<a href="#">清除COOKIES</a>
					</div>
					<div id="dibuwenzi">
						<p>Powered by phpwind v8.7 Certificate Copytight Time now is:08-22 08:45</p>
					</div>
					<div id="gongbeihao">
						<p>?2006-2015 LAMP兄弟连 版权所有 Gzip disabled 京ICP备11018177号 Total 0.040525(s) query 3,京公网安备11011302000117</p>
					</div>
				</div>
			
			</div>
		</div>
	
	
	</div>	
</body>
</html>